package com.example.pay.advice;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GlobalExceptionAdvice {


    @ExceptionHandler(Exception.class)
    private String exception(Exception e) {

        return e.getMessage();
    }

}
